package ${packageName};

import java.util.List;
import java.util.Map;
import ${entityPath}.${className};
import ${daoPath}.${className}Mapper;
import ${servicePath}.${className}Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * ClassName: ${className}ServiceImpl
 * Function:  TODO
 * Date:      ${datetime}
 * author     ${author}
 * version    V1.0
 */
@Service
public class ${className}ServiceImpl implements ${className}Service{

	@Autowired
	private ${className}Mapper ${lowClassName}Mapper;

	@Override
	public ${className} selectByPrimaryKey(Long id){
		return ${lowClassName}Mapper.selectByPrimaryKey(id);
	}

	@Override
	public List<${className}> list(Map<String, Object> map){
		return ${lowClassName}Mapper.list(map);
	}

	@Override
    public int count(Map<String, Object> map){
		return ${lowClassName}Mapper.count(map);
	}

	@Override
    public int insert(${className} record){
		return ${lowClassName}Mapper.insert(record);
	}

	@Override
    public int batchInsert(List<${className}> list){
		return ${lowClassName}Mapper.batchInsert(list);
	}

	@Override
    public int updateByPrimaryKey(${className} record){
		return ${lowClassName}Mapper.updateByPrimaryKey(record);
	}

	@Override
	public int batchUpdate(List<${className}> list){
		return ${lowClassName}Mapper.batchUpdate(list);
	}

	@Override
    public int deleteByPrimaryKey(Long id){
		return ${lowClassName}Mapper.deleteByPrimaryKey(id);
	}

	@Override
    public int batchRemove(Long[] ids){
		return ${lowClassName}Mapper.batchRemove(ids);
	}

}

